package com.qing.eduservice.service;

import com.qing.eduservice.entity.pojo.EduChapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qing.servicebase.utils.ResponseResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author Yjx
 * @since 2022-09-08
 */
public interface EduChapterService extends IService<EduChapter> {

    ResponseResult nestedList(String courseId);

    ResponseResult removeChapterById(String id);

    ResponseResult addChapter(EduChapter eduChapter);

    ResponseResult searchById(String id);

    ResponseResult updateById(String id,EduChapter chapter);

    ResponseResult removeById(String id);

    ResponseResult removeByCourseId(String courseId);

    ResponseResult nestedList();

}
